package _12excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.List;

/**
 * @description:
 * @author: wang zhen
 * @create: 2023-04-26 13:41
 */
public class BreakAlgoExcelListener extends AnalysisEventListener<BreakAlgoExcelVO> {

    private List data;
    public BreakAlgoExcelListener(List data){
        this.data=data;
    }

    @Override
    public void invoke(BreakAlgoExcelVO breakAlgoExcelVO, AnalysisContext analysisContext) {
        data.add(breakAlgoExcelVO);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
